Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.12] gh-109894: Fix initialization of static MemoryError in subinterpreter (gh-110911) #111238

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

miss-islington
Copy link
Contributor

Fixes GH-109894

  • set interp.static_objects.last_resort_memory_error.args to empty tuple to avoid crash on PyErr_Display() call
  • allow _PyExc_InitGlobalObjects() to be called on subinterpreter init

(cherry picked from commit 47d3e2e)

Co-authored-by: Radislav Chugunov [email protected]
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>

…erpreter (pythongh-110911)

Fixes pythonGH-109894

* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call
* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init

---------

(cherry picked from commit 47d3e2e)

Co-authored-by: Radislav Chugunov <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
@ericsnowcurrently ericsnowcurrently merged commit 0aceac5 into python:3.12 Nov 28, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants